package Operation;

import Book.BookList;

public class ExitBook implements IOPeration {
    @Override
    public void work(BookList books) {
        System.out.println("退出系统");
        for (int i = 0; i < books.getUsedSize(); i++) {
            books.setBooks(null,i);
        }
        books.setUsedSize(0);
        System.out.println("退出成功！");
        System.exit(0);
    }
}
